Skip to content

C#: Update the BMN Blazor test to .NET 11 - #23138

Merged
michaelnebel merged 2 commits into
github:mainfrom
michaelnebel:csharp/blazornet11test
Nov 16, 2026
Merged

michaelnebel merged 2 commits into
github:mainfrom
michaelnebel:csharp/blazornet11test

Conversation

@michaelnebel

Copy link
Copy Markdown
Contributor

The pinning of .NET isn't respected for the source generators. In this PR we update the Blazor test to .NET 11 instead.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The test’s restore can resolve the SDK from the root’s 10.0.201 pin, which cannot target net11.0, and the generated baselines also need regeneration through the test harness.

3 open issues
What changed in this PR

Updates the Blazor build-mode-none integration test to target .NET 11 and refreshes its expected Razor source-generator outputs.

Changes:

  • Pins the test project to SDK 11.0.100.
  • Changes the target framework from net10.0 to net11.0.
  • Refreshes generated-file listings and XSS source locations.
File Description
csharp/​ql/​integration-tests/​all-platforms/​blazor_build_mode_none/​XSS.expected Updates expected XSS analysis locations for Razor sources generated by .NET 11.
csharp/​ql/​integration-tests/​all-platforms/​blazor_build_mode_none/​Files.expected Adds the generated Razor declaration files expected from the .NET 11 SDK.
csharp/​ql/​integration-tests/​all-platforms/​blazor_build_mode_none/​BlazorTest/​global.json Pins the Blazor test project to the .NET SDK version 11.0.100.
csharp/​ql/​integration-tests/​all-platforms/​blazor_build_mode_none/​BlazorTest/​BlazorTest.csproj Changes the Blazor test project target framework from net10.0 to net11.0.

Review effort: Lite (dynamic)

@michaelnebel
michaelnebel force-pushed the csharp/blazornet11test branch from 11c90d4 to 092239b Compare November 16, 2026 12:15
@michaelnebel
michaelnebel marked this pull request as ready for review November 16, 2026 13:00
@michaelnebel
michaelnebel requested a review from a team as a code owner November 16, 2026 13:00
@michaelnebel
michaelnebel requested a review from hvitved November 16, 2026 13:00
@michaelnebel
michaelnebel merged commit 8804361 into github:main Nov 16, 2026
21 checks passed
@michaelnebel
michaelnebel deleted the csharp/blazornet11test branch November 16, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants